package GA;

import java.util.Arrays;

public abstract class Cross {
	protected double crossProb;
	protected int chromosomeLenght;
	
	public Cross(double crossProb, int chromosomeLenght){
		this.crossProb = crossProb;
		this.chromosomeLenght = chromosomeLenght;
	}
	
	public abstract Chromosome[] reproduction(Chromosome[] population);
	
	public static Chromosome[] sortPopulation(Chromosome[] population){ 
		Arrays.sort(population);
		return population;
	}
}
